<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'emergencylights-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'AutomaticEmergencyLightsProvided'); ?>
		<?php echo $form->textField($model,'AutomaticEmergencyLightsProvided'); ?>
		<?php echo $form->error($model,'AutomaticEmergencyLightsProvided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SourceOfPower'); ?>
		<?php echo $form->textField($model,'SourceOfPower'); ?>
		<?php echo $form->error($model,'SourceOfPower'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SourceOfPowerOther'); ?>
		<?php echo $form->textField($model,'SourceOfPowerOther',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'SourceOfPowerOther'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NoOfUnitsPerFloor'); ?>
		<?php echo $form->textField($model,'NoOfUnitsPerFloor'); ?>
		<?php echo $form->error($model,'NoOfUnitsPerFloor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LocationGasolineOnly'); ?>
		<?php echo $form->textField($model,'LocationGasolineOnly',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'LocationGasolineOnly'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LocatedAtHallways'); ?>
		<?php echo $form->textField($model,'LocatedAtHallways',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'LocatedAtHallways'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LocatedAtStairwayLandings'); ?>
		<?php echo $form->textField($model,'LocatedAtStairwayLandings',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'LocatedAtStairwayLandings'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Operational'); ?>
		<?php echo $form->textField($model,'Operational'); ?>
		<?php echo $form->error($model,'Operational'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ExitPathProperlyIlluminated'); ?>
		<?php echo $form->textField($model,'ExitPathProperlyIlluminated'); ?>
		<?php echo $form->error($model,'ExitPathProperlyIlluminated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TestedMonthly'); ?>
		<?php echo $form->textField($model,'TestedMonthly'); ?>
		<?php echo $form->error($model,'TestedMonthly'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Establishment_Id'); ?>
		<?php echo $form->textField($model,'Establishment_Id'); ?>
		<?php echo $form->error($model,'Establishment_Id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->